/******FIGURE III: EFFECTS ON SUPPORT FOR CRIMINAL JUSTICE REFORM***********/


/*******RUN ANALYSIS**********/
use ../data/referenda.dta, clear


//TREATMENT EFFECTS
sum pro_reform_pct if elec_yr==2004 & treat==1
local m = round(r(mean), .001)

reghdfe pro_reform_pct treat_post if sample_treat, cluster(CBG) absorb(cb elec_yr)
outreg2 using ../output/table3_referenda.xls, replace stats(coef se) ctitle(`y') dec(3) alpha(.01, .05, .10) addtext(model, main, mean, `m') symbol(***, **, *)excel 

reghdfe pro_reform_pct treat_post_armed treat_post_unarmed if sample_treat, cluster(CBG) absorb(cb elec_yr)
outreg2 using ../output/table3_referenda.xls, append stats(coef se) ctitle(`y') dec(3) alpha(.01, .05, .10) addtext(model, main, mean, `m') symbol(***, **, *)excel 

//PLACEBO EFFECTS
sum pro_reform_pct if elec_yr==2004 & placebo==1
local m = round(r(mean), .001)

reghdfe pro_reform_pct placebo_post if sample_placebo, cluster(CBG) absorb(cb elec_yr)
outreg2 using ../output/table3_referenda.xls, append stats(coef se) ctitle(`y') dec(3) alpha(.01, .05, .10) addtext(model, main, mean, `m') symbol(***, **, *)excel 

reghdfe pro_reform_pct placebo_post_armed placebo_post_unarmed if sample_placebo, cluster(CBG) absorb(cb elec_yr)
outreg2 using ../output/table3_referenda.xls, append stats(coef se) ctitle(`y') dec(3) alpha(.01, .05, .10) addtext(model, main, mean, `m') symbol(***, **, *)excel 
